'use strict'

const Promise = require("bluebird")
const request = Promise.promisifyAll(require('request'))

exports.get = function(url) {
 return new Promise(function(resolve,reject){
  request.getAsync(url).then(function(response) {
    resolve(response.body)
  })
 })
}